package com.cncbox.dao;

import com.cncbox.entity.Resource;

/**
 * @author Develop_Peng
 * @version V1.0
 * @Package com.cncbox.dao
 * @Description: 资源访问
 * @date 2016/3/31 11:46
 */

public interface ResourceDao {

    //添加资源
    Boolean addResource(Resource resource) throws Exception;

    //查询资源
    Resource queryResource(Integer queryId) throws Exception;

    //修改资源
    Boolean updateResourcePathNameById(Resource resource) throws Exception;

    //删除资源根据id
    Boolean deleteResourceById(Integer id) throws Exception;

    //删除资源根据文章id
    Boolean deleteResourceByArtId(Integer artId) throws Exception;
}
